/**
 * CopyRight © 2012 USTC SINOVATE SOFTWARE CO.LTD All Rights Reserved.
 */

package com.cmcc.zysoft.infocollection.mobile.dao;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;
import com.cmcc.zysoft.infocollection.model.Cities;
import com.starit.common.dao.hibernate.HibernateBaseDaoImpl;

/**
 * @author 袁凤建
 * <br />邮箱: yuan.fengjian@ustcinfo.com
 * <br />描述: MCitiesDao.java
 * <br />版本: 1.0.0
 * <br />日期: 2013-11-4 下午4:03:55
 * <br />CopyRight © 2012 USTC SINOVATE SOFTWARE CO.LTD All Rights Reserved.
 */

@Repository
public class MCitiesDao extends HibernateBaseDaoImpl<Cities, Integer> {

	@Autowired
	private JdbcTemplate jdbcTemplate;
	
	/**
	 * 根据城市ID获取城市列表信息.
	 * @param cityId 城市ID
	 * @return List<Cities>
	 */
	public List<Cities> getCities(String cityId) {
		return this.findByNamedParam(new String[]{"cityid"}, new Object[]{cityId});
	}
}